<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:sf="http://www.springframework.org/tags/faces"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:spring="http://www.springframework.org/tags">


  <rich:panel id="createClientPanel" >

	<h:form id="addClientForm">
		<ui:fragment id="addClientFragment">

			<h:panelGrid cellspacing="10" columns="2">
				<f:facet name="header">
					<h:outputText value="Add client" />
				</f:facet>

				<h:outputText style="display:block; text-align:right;"
					value="last Name : " />
				<h:inputText  value="#{flowScope.client.lastName}" />


           		<h:outputText style="display:block; text-align:right;"
					value="First Name : " />
				<h:inputText  value="#{flowScope.client.firstName}" />

                <h:outputText style="display:block; text-align:right;"
                     value="Telephone : " />
                 <h:inputText  value="#{flowScope.client.telephone}" />

				<h:outputText style="display:block; text-align:right;"
					value="Address : " />
				<h:inputText  value="#{flowScope.client.address}" />

                <h:outputText style="display:block; text-align:right;"
					value="Email : " />
				<h:inputText  value="#{flowScope.client.email}" />

                <h:outputText style="display:block; text-align:right;"
					value="UserName : " />
				<h:inputText  value="#{flowScope.client.userName}" />

                <h:outputText style="display:block; text-align:right;"
					value="Password : "  />
				<h:inputSecret  value="#{flowScope.client.password}" />

				<f:facet name="footer">
					<h:panelGroup style="display:block; text-align:right">
						<h:commandButton type="submit" value="Submit"
							action="addClientSubmit" />
						<h:commandButton type="button" value="Cancel" action="cancel" />
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>

		</ui:fragment>
	</h:form>
	</rich:panel>
</ui:composition>